<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript">
	function cx() {
		var bjId=$('#bj').val();
		var kcId=$('#kc').val();
		if(kcId==0||bjId==0){
			$('#table').empty();
		}else{
			$('#table').load('grade/bjcjcx03',{bjId:bjId,kcId:kcId});
		}
	}
	function xgcj(id,value) {
		$.post('grade/xgcj',{id:id,grade:value},function(data){});
	}
	function sx() {
		$('table').empty();
	}
</script>
<div >
<h2>班级成绩管理</h2>
	<p align="center">
		<label>班级：</label>
		<select id="bj" onchange="sx()">
			<option value="0">--请选择--</option>
			<c:forEach items="${bjs}" var="bj">
				<option value="${bj.id}">${bj.name}</option>
			</c:forEach>
		</select>
		<label>课程：</label>
		<select id="kc" onchange="sx()">
			<option value="0">--请选择--</option>
			<c:forEach items="${kcs}" var="kc">
				<option value="${kc.id }"> ${kc.name}</option>
				
			</c:forEach>
		</select>
		<button onclick="cx()">查询</button>
	</p>
	<div id="table">
	</div>
	</div>